from flask import Blueprint
from flask_restful import Api
from comment.utils.output import output_json

product_bp = Blueprint('product', __name__ ,url_prefix='/product')
product_api = Api(product_bp)

#使用定制好的返回到前端格式json
product_api.representation('application/json')(output_json)


from financial.resource.product.product_resource import ProductRate,InvestProduct

product_api.add_resource(InvestProduct,'/proList',endpoint='proList')
product_api.add_resource(ProductRate,'/proRate',endpoint='proRate')